<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>班级得分</title>
<link rel="stylesheet" type="text/css" href="{*$smarty.const.PUBLIC_DIR*}css/init.css"/>
</head>
<body>
<table>
        <tr>
            <th rowspan="2">层次</th>
            <th rowspan="2">系数</th>
            {*foreach $banjiliebiao as $banji*}
            <th colspan="3" {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>{*$banji*}班</th>
            {*/foreach*}
        </tr>
        <tr>
            {*foreach $banjiliebiao as $banji*}
            <td {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>人数</td>
            <td {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>得分</td>
            <td {*if $banji%2*}class="bg1"{*else*}class="bg2"{*/if*}>总分</td>
            {*/foreach*}
       </tr>
       
        {*foreach $cengcishuzu as $key=>$cengci*}
            <tr>
                <td>{*$key*}</td>
                <td>{*$cengcishuzu[$key]['系数']*}</td>
                {*if $cengci@index*}
                    {*foreach $cengci['人数'] as $banji*}
                        <td {*if ($banji['renshu']['banji']%2)*}class="bg1"{*else*}class="bg2"{*/if*}>{*$banji['renshu']['banji']*}班{*$banji['renshu']*}</td>
                        <td {*if ($banji['renshu']['banji']%2)*}class="bg1"{*else*}class="bg2"{*/if*}>{*if $banji['得分']*}{*$banji['得分']*}{*/if*}</td>
                    {*/foreach*}
                    {*else*}
                        {*foreach $banjiliebiao as $banji*}
                            <td {*if ($banji%2)*}class="bg1"{*else*}class="bg2"{*/if*}></td>
                            <td {*if ($banji%2)*}class="bg1"{*else*}class="bg2"{*/if*}></td>
                            <td {*if ($banji%2)*}class="bg1"{*else*}class="bg2"{*/if*} rowspan="4">{*$banjizongfen[$banji]*}</td>
                        {*/foreach*}
                {*/if*}
            </tr>
        {*/foreach*}
</table>
<br />
<table>
    <tr>
        <th>班级</th>
        <th>班级分</th>
        <th>单价</th>
        <th>金额</th>
    </tr>
    {*foreach $banjiliebiao as $banji*}
       <tr>
            <td>{*$banji*}</td>
            <td>{*$banjizongfen[$banji]['zongfen']*}</td>
            <td>{*$danjia*}</td>
            <td>{*$banjizongfen[$banji]['zongjine']*}</td>
        </tr>
    {*/foreach*}
    <tr>
        <td>合计</td>
        <td>{*$nianjizongfen*}</td>
        <td></td>
        <td>{*$sishewuruzongjine*}</td>
    </tr>
</table>
</body>
</html>